﻿@model IEnumerable<WI.CandidateManager.Common.Data.Entities.Homework>

@{
    ViewBag.Title = "Waiting for check homeworks";
}

<h2>Waiting for check homeworks</h2>

<p>@Html.ActionLink(@Resources.Common.CommonButtonCreateHomework, "Create", "Homeworks", new { @class = "common-btn BlueColor" })</p>

<ul class="master-tab-wrap">
    <li>@Html.ActionLink(@Resources.Common.CommonTabMyHomeworks, "List", "Homeworks")</li>
    <li>@Html.ActionLink(@Resources.Common.CommonTabAllHomeworks, "AllList", "Homeworks")</li>
    <li class="master-tab-pushed">@Html.ActionLink("Pending List", "PendingList", "Homeworks")</li>
</ul>

<table class="bordered">
    <thead>
        <tr>
            <th>@Resources.Common.CommonButtonDetails</th>
            <th>Check</th>
            <th>@Resources.Common.CommonColumnHomeworkName</th>
            <th>@Resources.Common.CommonColumnOwner</th>
        </tr>
    </thead>
    @foreach (var homework in Model)
    {
        <tr>
            <td class="Center column-detail">@Html.ActionLink(@Resources.Common.CommonButtonDetails, "Detail", new { @HomeworkId = homework.Id }, new { @class = "common-btn BlueColor" })</td>
            <td class="Center column-detail">@Html.ActionLink("Check", "Check", new { @HomeworkId = homework.Id }, new { @class = "common-btn BlueColor" })</td>
            <td>@homework.Name</td>
            <td>@homework.Owner.ShortName</td>
        </tr>        
    }
</table>
